import request from '@/utils/request'
export function getChannels(query) {
    return request({
        url: '/channels/getChannels',
        method: 'get',
        params: query
    })
}

export function getChannel(query) {
    return request({
        url: '/channels/getChannel',
        method: 'get',
        params: query
    })
}
export function saveChannel(data) {
    return request({
        url: '/channels/saveChannel',
        method: 'post',
        data: data
    })
}
export function changeVisibility(data) {
    return request({
        url: '/channels/changeVisibility',
        method: 'post',
        data: data
    })
}